<?
//ini_set('display_errors', 1);
//ini_set('error_reporting', E_ALL);
require_once("Smarty/libs/Smarty.class.php");
require_once("conf.inc.php");
require_once("dbaccess.php");



class MySmarty extends Smarty{	
	var $_db;
	function MySmarty(){
		$this->Smarty();
		$this->caching = 2;
		//$this->cache_handler_func = "memcache_cache_handler";
		$this->template_dir = "/var/www/vhdocs/douga/templates/";
		$this->compile_dir = "/var/www/vhdocs/douga/templates_c/";
		$this->cache_dir = "/var/www/vhdocs/douga/cache/";
		$this->compile_check  = true; 
	}
	
	function doSQL($sql){
		return doSQL($sql);	
	}
	
	function dbconnect(){
		return dbconnect();
	}
	
	function dbclose($con){
		dbclose($con);
	}
}

 ?>
